package com.zg.common.core.constant;

public class FlowContants {
    //各种实例前缀 最好别超过3位
    public static final String FLOWINS_PRE = "FI";
    public static final String FLOWSTEPINS_PRE = "SI";

    /**
     * 删除状态
     */
    public static final String DELETE_STATE_UN = "0";
    public static final String DELETE_STATE_YES = "1";

    /**
     * 状态标识
     */
    public static final String NO_TAG = "0";
    public static final String OK_TAG = "1";

    /**
     * 流程状态
     */
    //已删除
    public static final String FLOW_INST_STATUS_DELETE = "0";
    //进行中
    public static final String FLOW_INST_STATUS_RUNING = "1";
    //已结束
    public static final String FLOW_INST_STATUS_OVER = "2";
    //已作废
    public static final String FLOW_INST_STATUS_CANCEL = "3";
    //未开始
    public static final String FLOW_INST_STATUS_NOSTART = "4";
    //草稿
    public static final String FLOW_INST_STATUS_DRAFT = "5";

    /**
     * 环节CODE
     */
    //启动环节00
    public static final String STEP_CODE_START = "00";
    //结束环节99
    public static final String STEP_CODE_OVER = "99";
    //退回环节
    public static final String STEP_CODE_RETURN = "0B";

    /**
     * 流程环节状态
     */
    //1进行中
    public static final String STEP_INST_STATUS_RUNING = "1";
    //已完成
    public static final String STEP_INST_STATUS_COMPLETE = "2";
    //已结束
    public static final String STEP_INST_STATUS_OVER = "3";
    //已退回
    public static final String STEP_INST_STATUS_RETURNBACK = "4";
    //作废状态
    public static final String STEP_INST_STATUS_CANCEL = "9";

    /**
     * 待启动表状态
     */
    public static final String WAIT_START_STATE_RUNING = "0";
    public static final String WAIT_START_STATE_COMPLETE = "1";

    /**
     * 环节处理类型
     */
    //单签
    public static final String STEP_APPROVAL_TYPE_DANQIAN = "0";
    //会签
    public static final String STEP_APPROVAL_TYPE_HUIQIAN = "1";
    //跳转结束
    public static final String STEP_APPROVAL_TYPE_TIAOZHUANJIESHU = "2";
    //或签
    public static final String STEP_APPROVAL_TYPE_HUOQIAN = "3";

    /**
     * 环节参数
     */
    //下个流程的流程code
    public static final String STEP_PARAMETER_KEY_NEXT_FLOW = "NEXT_FLOW";
    //下个流程的启动环节
    public static final String STEP_PARAMETER_KEY_NEXT_FLOW_STEP = "NEXT_FLOW_STEP";
    //下个流程的启动人
    public static final String STEP_PARAMETER_KEY_NEXT_FLOW_USER = "NEXT_FLOW_USER";

    /**
     * 用户处理状态
     */
    //未处理
    public static final String USER_HANDLE_STATUS_DOING = "0";
    //已处理
    public static final String USER_HANDLE_STATUS_OVER = "1";

    /**
     * SETTLE_BIZFORM表状态
     */
    //新建
    public static final Integer SETTLE_BIZFORM_STATE_CREATED = 1;
    //保存
    public static final Integer SETTLE_BIZFORM_STATE_SAVED = 2;
    //已生成PDF
    public static final Integer SETTLE_BIZFORM_STATE_PDFED = 3;
    //已经盖章
    public static final Integer SETTLE_BIZFORM_STATE_SEALED = 4;

}
